package cn.stylefeng.guns.sys.modular.metadata.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 元数据管理表
 * </p>
 *
 * @author author
 * @since 2020-11-17
 */
@TableName("data_metadata")
public class Metadata implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
      @TableId(value = "metadata_id", type = IdType.AUTO)
    private Integer metadataId;

    /**
     * 元数据类型。1代表业务元；2代表技术元；；3代表管理元
     */
    @TableField("metadata_type")
    private Integer metadataType;

    /**
     * 数据编号
     */
    @TableField("metadata_number")
    private String metadataNumber;

    /**
     * 数据名称
     */
    @TableField("metadata_name")
    private String metadataName;

    /**
     * 描述
     */
    @TableField("metadata_detail")
    private String metadataDetail;

    /**
     * 数据量
     */
    @TableField("metadata_total")
    private Integer metadataTotal;

    /**
     * 对应数据库表名
     */
    @TableField("table_name")
    private String tableName;

    /**
     * 1代表可用；0代表删除
     */
    @TableField("is_delete")
    private Integer isDelete;


    public Integer getMetadataId() {
        return metadataId;
    }

    public void setMetadataId(Integer metadataId) {
        this.metadataId = metadataId;
    }

    public Integer getMetadataType() {
        return metadataType;
    }

    public void setMetadataType(Integer metadataType) {
        this.metadataType = metadataType;
    }

    public String getMetadataNumber() {
        return metadataNumber;
    }

    public void setMetadataNumber(String metadataNumber) {
        this.metadataNumber = metadataNumber;
    }

    public String getMetadataName() {
        return metadataName;
    }

    public void setMetadataName(String metadataName) {
        this.metadataName = metadataName;
    }

    public String getMetadataDetail() {
        return metadataDetail;
    }

    public void setMetadataDetail(String metadataDetail) {
        this.metadataDetail = metadataDetail;
    }

    public Integer getMetadataTotal() {
        return metadataTotal;
    }

    public void setMetadataTotal(Integer metadataTotal) {
        this.metadataTotal = metadataTotal;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Metadata{" +
        "metadataId=" + metadataId +
        ", metadataType=" + metadataType +
        ", metadataNumber=" + metadataNumber +
        ", metadataName=" + metadataName +
        ", metadataDetail=" + metadataDetail +
        ", metadataTotal=" + metadataTotal +
        ", tableName=" + tableName +
        ", isDelete=" + isDelete +
        "}";
    }
}
